//music 相关状态
import {UPDATE_MISIC_LIST} from '../reducersTypes'
const initState = {
  musicList: [],
  musicLen: 0
}
export default (state = initState, actions) => {
  const newState = JSON.parse(JSON.stringify(state))
  console.log(actions);
  switch (actions.type) {
    case UPDATE_MISIC_LIST:
      newState.musicList = actions.payload
      newState.musicLen = newState.musicList.length
      break;
    default:
      break;
  }

  return newState


}